/**
 * 2019年1月17日上午8:28:41
 * @author 谢进财
 */
package com.baihang.project.ds.controller;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.baihang.framework.controller.BaseController;
import com.baihang.project.ds.common.CommonService;
import com.baihang.project.ds.entity.LouDongEntity;

/**
 * @author 房源销售情况展示
 *
 */
@Controller
@RequestMapping("/roomSaleCase")
public class RoomSaleCaseController extends BaseController {
	private static Logger logger = LoggerFactory.getLogger(RoomSaleCaseController.class);
	@Autowired
	private CommonService commonService;
	@RequestMapping
	public String index() {
		return "/project/ds/roomSaleCase/index";
	}
	@RequestMapping("/loudongData")
	public ModelAndView loudongData(){
		ModelAndView  mav = new ModelAndView("/project/ds/roomSaleCase/loudongData");
		List<LouDongEntity> list = commonService.getLouDong();
		System.err.println(list.size());
		mav.addObject("loudong",list);
		return mav;
	}
}
